package edu.byu.intex2.data.bo;

import java.util.List;

/**
 * Sale keeps track of a logical sale made by a salesperson.
 * @author Brady
 */
public class Sale extends BusinessObject {
    private Dealership dealership;
    private List<SaleLine> salesLines;
    private List<TradeInLine> tradeInLines;

    /** Creates a new instance of BusinessObject */
    public Sale(String id) {
        super(id);
    }//constructor

    /**
     * @return the dealership
     */
    public Dealership getDealership() {
        return dealership;
    }

    /**
     * @param dealership the dealership to set
     */
    public void setDealership(Dealership dealership) {
        this.dealership = dealership;
    }

    /**
     * @return the salesLines
     */
    public List<SaleLine> getSalesLines() {
        return salesLines;
    }

    /**
     * @param salesLines the salesLines to set
     */
    public void setSalesLines(List<SaleLine> salesLines) {
        this.salesLines = salesLines;
    }

    /**
     * @return the tradeInLines
     */
    public List<TradeInLine> getTradeInLines() {
        return tradeInLines;
    }

    /**
     * @param tradeInLines the tradeInLines to set
     */
    public void setTradeInLines(List<TradeInLine> tradeInLines) {
        this.tradeInLines = tradeInLines;
    }


}
